package com.test.textGame.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GameCommitVO implements Serializable {

    private static final long serialVersionUID = 2965171928845961210L;

    @NotNull(message = "玩家ID不能为空")
    private Long userId;

    @NotNull(message = "玩家名称不能为空")
    private String userName;

    @NotNull(message = "玩家输入的文本不能为空")
    private String text;
}
